package com.example.yan.java数组;

import java.util.Arrays;

public class hello {

    public static void main(String[] args) {
        int[] arr1={10,20,30,40,50};
        int[] arr2=arr1;

        System.out.println(Arrays.toString(arr1));
        System.out.println(Arrays.toString(arr2));

        arr1[0]=111;
        arr2[1]=222;

        System.out.println(Arrays.toString(arr1));
        System.out.println(Arrays.toString(arr2));
    }



}
